import request from '@/utils/request'

// 查询学生信息申请单列表
export function stuapprinfoList(query) {
  return request({
    url: '/basic/stuapprinfo/list',
    method: 'get',
    params: query
  })
}
// 获取表单填写格式
export function getFormInfo(formType) {
  return request({
    url: '/basicdata/filedsetting/getFormInfo/' + formType,
    method: 'get',
//     params: formType
  })
}
// 学生申请信息补充
export function stuapprinfo(data) {
  return request({
    url: '/basic/stuapprinfo',
    method: 'post',
    data: data
  })
}
// 获取家庭地址树形结构
export function addersTree() {
  return request({
    url: '/basic/nativeplace/addersTree',
    method: 'get',

  })
}
// 获取学生信息申请单详细信息
export function getInforStuapprinfo(baiId) {
  return request({
    url: '/basic/stuapprinfo/' + baiId,
    method: 'get',

  })
}
//审核学生申请单
export function apprStatus(baiId,data) {
  return request({
    url: '/basic/stuapprinfo/apprStatus/' + baiId,
    method: 'put',
    params:data

  })
}
//驳回修改学生信息申请单

export function apprStatusReject(data) {
  return request({
    url: '/basic/stuapprinfo',
    method: 'put',
    data:data

  })
}
//批量审核学生申请单
export function batchAppr(data) {
  return request({
    url: '/basic/stuapprinfo/apprStatus/batchAppr',
    method: 'put',
    data:data

  })
}
//驳回修改学生信息申请单

export function stuapprinfoDel(data) {
  return request({
    url: '/basic/stuapprinfo/' + data,
    method: 'delete',

  })
}
//驳回修改学生信息申请单

export function stuappPut(data) {
  return request({
    url: '/basic/stuapprinfo',
    method: 'put',
    data:data
  })
}
//

export function getApplyNum() {
  return request({
    url: '/basic/stuapprinfo/getApplyNum',
    method: 'get',

  })
}